
package models.spider.policy;

import java.util.List;

/**
 * 
 * @author laurent@opprecht.info
 */
public class Policy implements IPolicy {

    public final static IPolicy YES       = Yes.INSTANCE;
    public final static IPolicy URL       = Url.INSTANCE;
    public final static IPolicy LOCALHOST = new Whitelist("localhost");

    static IPolicy create(final List<IPolicy> policies) {
        return And.create(policies);
    }

    @Override
    public boolean accept(final String url) {
        return true;
    }

}
